package com.poetize.plus.entity.vo.page;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

/**
 * @Author zuosy
 * @Date 2024/3/30 15:35
 **/
public record ArticlePageVO(
        @Schema(description = "id")
        Long id,
        @Schema(description = "标题")
        String articleTitle,
        @Schema(description = "封面")
        String articleCover,
        @Schema(description = "内容")
        String articleContent,
        @Schema(description = "分类")
        String sortName,
        @Schema(description = "标签")
        String labelName,
        @Schema(description = "浏览量")
        Integer viewCount,
        @Schema(description = "评论数")
        Long commentCount,
        @Schema(description = "是否可见")
        Boolean viewStatus,
        @Schema(description = "是否启用评论")
        Boolean commentStatus,
        @Schema(description = "是否推荐")
        Boolean recommendStatus,
        @Schema(description = "是否加密")
        Boolean encoderStatus,
        @Schema(description = "创建时间")
        @JsonFormat(pattern = "yyyy-MM:dd HH:mm:ss")
        LocalDateTime createTime,
        @Schema(description = "修改时间")
        @JsonFormat(pattern = "yyyy-MM:dd HH:mm:ss")
        LocalDateTime updateTime
) {

}
